package model.dto;

public class FileDTO {
	private Integer id;
	private Integer id_user;
	private String filename;
	private long size;
	private String extension;

	public FileDTO(){
		this.id=0;
		this.id_user=0;
		this.filename="";
		this.size=0;
		this.extension="";
	}

	public FileDTO(Integer id){
		this.id=id;
		this.id_user=0;
		this.filename="";
		this.size=0;
		this.extension="";
	}

	public FileDTO(Integer id, Integer id_user, String filename, String extension, long size){
		this.id=id;
		this.id_user=id_user;
		this.filename=filename;
		this.size=size;
		this.extension=extension;
	}

	public String toString(){

		return "|id: " + this.id +"\t|ID User: " + this.id_user + "\t|Filename: " + this.filename + "\n|Extension: " + this.extension + "\n|Size: " + this.size;
	}

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getId_user() {
		return id_user;
	}
	public void setId_user(Integer id_user) {
		this.id_user = id_user;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public String getExtension() {
		return extension;
	}
	public void setExtension(String extension) {
		this.extension = extension;
	}

}
